# if you want to debug Qi (the parser):
#add_definitions("-DBOOST_SPIRIT_DEBUG")
# and for the lexer
#add_definitions("-DBOOST_SPIRIT_LEXERTL_DEBUG")

# Phoenix v3 resolves some issues, and we should move to it anyway
add_definitions("-DBOOST_SPIRIT_USE_PHOENIX_V3")

add_subdirectory( tests )
if( MSVC )
  # in debug mode we can get C1128; this is the workaround
  set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj" )
endif()

add_library( lefdef lefdef.cpp )
target_link_libraries( lefdef Boost::boost )
